<?php

namespace App\Repositories\Transformers;

use App\Models\CulturalHeritageType;
use League\Fractal\TransformerAbstract;

class CulturalHeritageTypeTransformer extends TransformerAbstract
{
    public function transform(CulturalHeritageType $culturalHeritageType)
    {
        return [
            'id' => $culturalHeritageType->id,
            'name' => $culturalHeritageType->name,
            'cover' => $culturalHeritageType->cover,
        ];
    }
}
